package com.xmxsuperstar.ant.task.model;

public class ClassPathEntry {
	public enum Type {
		src, lib, con, output;

		public String toString() {
			switch (this) {
			case src:
				return "src";
			case lib:
				return "lib";
			case con:
				return "con";
			case output:
				return "output";
			default:
				return null;
			}
		}
	}

	private ClassPathEntry.Type type;
	private String path;
	private String sourcepath;

	public ClassPathEntry(ClassPathEntry.Type type, String path) {
		this.type = type;
		this.path = path;
		this.sourcepath = null;
	}

	public ClassPathEntry(ClassPathEntry.Type type, String path,
			String sourcepath) {
		this.type = type;
		this.path = path;
		this.sourcepath = sourcepath;
	}

	public ClassPathEntry.Type getType() {
		return type;
	}

	public void setType(ClassPathEntry.Type type) {
		this.type = type;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getSourcepath() {
		return sourcepath;
	}

	public void setSourcepath(String sourcepath) {
		this.sourcepath = sourcepath;
	}
}
